package com.credithc.signature.common.mapper;

import com.credithc.baseserv.core.mapper.BsBaseMapper;
import com.credithc.signature.common.po.FddSealInfo;
import com.credithc.signature.common.ro.facade.FddAuthReq;
import com.credithc.signature.common.ro.manager.SealInfoRo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FddSealInfoMapper extends BsBaseMapper<FddSealInfo> {

    /**
     * 根据code和keywords查询所有
     *
     * @return
     */
    List<FddSealInfo> selectByCodeOrKeyWords(@Param("condition") FddAuthReq req);

    /**
     * 查询所有
     *
     * @param sealInfoRo
     * @return
     */
    List<FddSealInfo> listByParamsAndPage(@Param("condition") SealInfoRo sealInfoRo);

    /**
     * 查询总数
     *
     * @param sealInfoRo
     * @return
     */
    int countByParamsAndPage(@Param("condition") SealInfoRo sealInfoRo);

    /**
     * 获取公章信息
     *
     * @param sealCodeList
     * @return
     */
    List<FddSealInfo> selectBySealCodeList(@Param("sealCodeList") List sealCodeList);

    /**
     * 根据sealCode获取公章信息
     *
     * @param sealCode
     * @return
     */
    FddSealInfo selectBySealCode(String sealCode);
}
